﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using BitworkStudios.Wizard.Forms;
using Forms.Demo.Controls.Wizard;

namespace Forms.Demo
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var model = new WizardModel();
            var host = new WizardHost(model) { Text = "My Wizard" };
            host.WizardCompleted += host_WizardCompleted;
            host.AddPage(1, new Page1());
            host.AddPage(2, new Page2());
            host.LoadWizard();
            host.ShowDialog();
        }

        private void host_WizardCompleted()
        {
            MessageBox.Show("Done!"); //obviously you'd do something else in a real app...
        }
    }
}
